package com.dd.cloud.user.service.chknowl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.cloud.user.entity.chknowl.ChknowlConsilia;
import com.dd.cloud.user.req.chknowl.ChknowlConsiliaCreateReq;
import com.dd.cloud.user.req.chknowl.ChknowlConsiliaUpdateReq;
import com.dd.cloud.user.req.chknowl.ConsiliaPageReq;
import com.dd.cloud.user.res.chknowl.ChknowlConsiliaPageRes;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 医案 服务类
 * </p>
 *
 * @author czg
 * @since 2022-07-04
 */
public interface IChknowlConsiliaService extends IService<ChknowlConsilia> {

    /**
     * word文档导入医案
     */
    void importConsiliaWord(MultipartFile file);

    /**
     * 查询医案内容
     * @param req
     * @return
     */
    IPage<ChknowlConsiliaPageRes> getConsiliaPage(ConsiliaPageReq req);

    /**
     * 通过id获取医案
     * @param id
     * @return
     */
    ChknowlConsilia getConsiliaById(Integer id);

    /**
     * 添加医案
     * @param req
     */
    void addConsilia(ChknowlConsiliaCreateReq req);

    /**
     * 修改医案
     * @param req
     */
    void updateConsilia(ChknowlConsiliaUpdateReq req);

    /**
     * 修改医案信息状态
     *
     * @param id     id
     * @param status 状态
     */
    void updateChConsiliaStatus(Integer id, Integer status);

    /**
     * 导入医案
     * @param file
     */
    void importConsiliaBatch(MultipartFile file);
}
